package com.entity;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.SimpleFormatter;

public class Working {
//    private static final long serialVersionUID = -7985708879680224193L;
	private Integer id;			//id
    private String title;	//	工作标题
    private String content;		//工作内容
    private Date createDate;	//编写日期
    private Integer type;	//工作类型
    
	public String getTitle() {
		return title;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getCreateDate() {
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
		return format.format(createDate);
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}

	public Working(){}
	public Working(Integer id, String title, String content, Date createDate, Integer type) {
		this.id = id;
		this.title = title;
		this.content = content;
		this.createDate = createDate;
		this.type = type;
	}
}

    